package homework2;


import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * User对象属性：姓名[String]、年龄[int]、性别[char]、城市[String]、出生日期、创建时间
 * 熊大,20,男,上海,2003-03-10;
 */
public class User {
    private String name;
    private int age;
    private char gender;
    private String city;
    private LocalDate birthDate;//出生日期
    private LocalDateTime creationTime;//创建时间

    public User() {
    }

    public User(String name, int age, char gender, String city, LocalDate birthDate, LocalDateTime creationTime) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.city = city;
        this.birthDate = birthDate;
        this.creationTime = creationTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public LocalDate getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(LocalDate birthDate) {
        this.birthDate = birthDate;
    }

    public LocalDateTime getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(LocalDateTime creationTime) {
        this.creationTime = creationTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender=" + gender +
                ", city='" + city + '\'' +
                ", birthDate=" + birthDate +
                ", creationTime=" + creationTime +
                '}';
    }
}
